package shuati.chuanzhibei;

import java.util.Scanner;

/**
 * @Date : 2022/11/26
 * @Description:
 */
public class p1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double t,h,e;
        t=sc.nextDouble();
        h=sc.nextDouble();
        e=sc.nextDouble();
        int w=(int)(t*0.2+h*0.3+e*0.5);
        System.out.println(w);

    }
}
